package InterfaceGrafica;

import java.awt.BorderLayout;
import java.awt.Container;

import javax.swing.JButton;
import javax.swing.JFrame;

public class Window {
	private static final int NUM_COLUNAS = 15;
	private static final int NUM_LINHAS = 15;
	private JFrame janela = new JFrame("Air Traffic Control");
	private JButton end = new JButton("End");
	private MyTabel tabela;
	
	public Window() {
		Container c = janela.getContentPane();
		
		tabela = new MyTabel(NUM_COLUNAS, NUM_LINHAS);
		
		c.add(tabela);
		c.add(end, BorderLayout.SOUTH);
		
		janela.setSize(377,395);
		janela.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
	}

	public void init() {
		janela.setVisible(true);
	}

}
